import request from "@/utils/request"

//根据id查询小节信息
export function getVideo(id) {
  return request({
    url: `/eduService/video/getVideo/` + id,
    method: 'get',
  })
}

//添加章节
export function addVideo(video) {
  return request({
    url: `/eduService/video/addVideo/`,
    method: 'post',
    data: video
  })
}

//修改章节
export function updateVideo(video) {
  return request({
    url: `/eduService/video/updateVideo/`,
    method: 'post',
    data: video
  })
}

//删除章节
export function removeVideo(id) {
  return request({
    url: `/eduService/video/deleteVideo/` + id,
    method: 'delete',
  })
}
